package com.example.springbootredis;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
@Component
public class Apple {
    //初始化注解
    @PostConstruct
    public void start(){
        System.out.println("--------afterPropertiesSet three--------");
    }
    //销毁注解
    @PreDestroy
    public void end(){
        System.out.println("--------destroy three--------");
    }
}